// pswd_chk.js
//   An example of input password checking, using the submit 
//   event
     
// The event handler function for password checking
  
function chkPasswords() { 
    var init = document.getElementById("initial");
    var sec = document.getElementById("second");
    var sub = document.getElementById("submit");
    if (sec.value == "") {
      alert("You did not enter a password \n" +
            "Please enter one now");
      return false;
    }else  
     sub.removeAttribute('disabled');
  }

    function chkPasswords2() { 
    var init = document.getElementById("initial");
    var sec = document.getElementById("second");
    if (init.value != sec.value) {
      alert("The two passwords you entered are not the same \n" +
            "Please re-enter both now");
      return false;
    } else
      return true;
  }
  
  function chkPassword() { 
    var init = document.getElementById("initial");
    var sec = document.getElementById("second");
    if (init.value == "") {
      // alert("You did not enter a password \n" +
      //       "Please enter one now");
      return false;
    }
    else
    sec.removeAttribute('disabled');
  }